package com.thread.blockQueue.generant;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author milian
 * @Date 2021/7/29 0029 17:19
 */
public class test {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<>(1);
        cooker cooker = new cooker(arrayBlockingQueue);
        foodie foodie = new foodie(arrayBlockingQueue);
        cooker.start();
        foodie.start();
    }
}
